const {merge} = require('webpack-merge')
const commonConfig = require('./webpack.common')
const path = require('path')
const webpack = require('webpack')
let devConfig = {
    mode: 'development',
    plugins: [
        new webpack.HotModuleReplacementPlugin()
    ],
    devServer: {
        hot: true,
        contentBase: path.join(__dirname, 'dist')
    }
}

module.exports = merge(commonConfig, devConfig)